package com.bristua.mall.common.biz;

import com.bristua.mall.common.dao.TPromotionMapper;
import com.bristua.mall.common.model.TPromotion;
import com.bristua.mall.common.model.condition.TPromotionExample;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * Created by Administrator on 2019/5/9.
 */
@Service
public class QueryPromotionBiz {
    @Resource
    private TPromotionMapper tPromotionMapper;

    public List<TPromotion> queryPromotion(){
        TPromotionExample tPromotionExample = new TPromotionExample();
        return tPromotionMapper.selectByExampleWithBLOBs(tPromotionExample);
    }
}
